using UnityEngine;

public class MoreGame : MonoBehaviour
{
	private string moreGame = "MoreGame";

	[SerializeField]
	private Graphic graphic;

	[SerializeField]
	private GameObject moreGameButton;

	public int MoreGameDone
	{
		get
		{
			return PlayerPrefs.GetInt(moreGame, 0);
		}
		set
		{
			PlayerPrefs.SetInt(moreGame, value);
		}
	}

	private void Start()
	{
		moreGameButton.SetActive(MoreGameDone == 0);
	}

	public void MoreGameClick()
	{
		MoreGameDone = 1;
		moreGameButton.SetActive(value: false);
		Controller.instance.SetSuperCash(50);
		graphic.ShowPopup(value: false, Graphic.Dialog.MoreGame);
		Application.OpenURL("market://details?id=com.idle.miner.inc.tycoon.prison.clicker.ikame&utm_source=miner");
	}

	public void MoreGamePopup(bool value)
	{
		graphic.ShowPopup(value, Graphic.Dialog.MoreGame);
	}
}
